import request from '@/utils/request'

// 查询股票限制名单列表
export function listRiskSharesRestricted(query) {
    return request({
        url: '/restricted/riskSharesRestricted/list',
        method: 'get',
        params: query
    })
}

// 查询股票限制名单详细
export function getRiskSharesRestricted(id) {
    return request({
        url: '/restricted/riskSharesRestricted/' + id,
        method: 'get'
    })
}

// 保存股票限制名单
export function saveRiskSharesRestricted(data) {
    return request({
        url: '/restricted/riskSharesRestricted/save',
        method: 'post',
        data: data
    })
}

// 删除股票限制名单
export function delRiskSharesRestricted(id) {
    return request({
        url: '/restricted/riskSharesRestricted/' + id,
        method: 'delete'
    })
}

// 导出股票限制名单
export function exportRiskSharesRestricted(query) {
    return request({
        url: '/restricted/riskSharesRestricted/export',
        method: 'get',
        params: query
    })
}
